#include <iostream>
using namespace std;

int main()
{
    int num1 = 10;
    int num2 = 3;
    cout << num1 % num2 << endl; //取模运算% 求两数相除的余数
    //num2不能为0

    int a1 = 10;
    int a2 = 20;
    cout << a1 % a2 << endl;//10

    //两个小数之间，不能做取模%运算
    double d1 = 3.14;
    double d2 = 1.1;
    // error : cout << d1 % d2 << endl;

    return 0;
}